package com.sugou.model.datas.embeddable;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class Point implements Serializable {
	private static final long serialVersionUID = -3779984680047428508L;

	public Point(){}
	
	public Point(double lng,double lat){
		this.lng=lng;
		this.lat=lat;
	}
	
	@Column(nullable=false)
	private double lng;
	
	@Column(nullable=false)
	private double lat;

	public double getLng() {
		return lng;
	}

	public void setLng(double lng) {
		this.lng = lng;
	}

	public double getLat() {
		return lat;
	}

	public void setLat(double lat) {
		this.lat = lat;
	}

}
